import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;


public class InputReader extends Reader{

	InputReader(String fileName) {
		super(fileName);
	}
	public List readFile(){
		List values = new ArrayList();
		try {
			int numberOfLines = Integer.parseInt(this.reader.readLine());
			while(numberOfLines-- >0){
				String line = this.reader.readLine();
				String[] numbers = line.split(" ");
				int[] inputs = new int[numbers.length];
				inputs[0] = Integer.parseInt(numbers[0].trim());
				inputs[1] = Integer.parseInt(numbers[1].trim());
				inputs[2] = Integer.parseInt(numbers[2].trim());
				values.add(inputs);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return values;
	}
	public static void main(String[] args) {
		InputReader reader = new InputReader("C:\\sivravis\\dev\\studies\\Algorithms\\Hackerrank\\input01.txt");
		List values = reader.readFile();
		for (Iterator iterator = values.iterator(); iterator.hasNext();) {
			int[] inputs = (int[]) iterator.next();
			System.out.println(inputs[0] + " " + inputs[1] + " " + inputs[2]);
			
		}
		reader.close();
	}
}
